package cn.legend.travel.admin.authorize.dao.persist.repository.impl;

import cn.legend.travel.admin.authorize.dao.persist.mapper.FrontendMenuMapper;
import cn.legend.travel.admin.authorize.dao.persist.repository.IFrontendMenuRepository;
import cn.legend.travel.admin.authorize.pojo.vo.FrontendSubVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class FrontendMenuRepositoryImpl implements IFrontendMenuRepository {
    private final FrontendMenuMapper mapper;

    @Override
    public List<FrontendSubVO> getMenuByRoleId(Long roleId) {
        return mapper.getMenuByRoleId(roleId);
    }

}
